package cn.edu.njtc.service;

import cn.edu.njtc.entity.pojo.MedicalVisit;
import cn.edu.njtc.exception.BizException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface MedicalVisitService {
    List<MedicalVisit> listAll();
    List<MedicalVisit> getById(Integer id) throws BizException;
    void add(MedicalVisit visit) throws BizException;
    void update(MedicalVisit visit) throws BizException;
    void delete(Integer id);
    Page<MedicalVisit> pageList(int pageNum, int pageSize);
}
